extends Control



func _on_移动_pressed():
	ObjectManager.soundManager.play(SoundType.button_click)
	if !GameUtils.checkIsReadyAction() || !GameUtils.checkActionEnough(SpendData.COST_BIG_MOVE):
		return
	ObjectManager.gameManager.operationManager.changeOperationType(OperationType.幽灵_move)
	visible = false
	ObjectManager.gameManager.ui.closeDesc()


func _on_二转_pressed():
	ObjectManager.soundManager.play(SoundType.button_click)
	$"../转型弹框".showDialog_secondaryEvolve("幽灵")


func _on_移动_mouse_entered():
	var ui = ObjectManager.gameManager.ui as UI
	ui.wantShowDesc("游荡：消耗1点能量，移动到落点，若落点有敌方大子，使其怯战，同时自身死亡")


func _on_二转_mouse_entered():
	var ui = ObjectManager.gameManager.ui as UI
	ui.wantShowDesc("二转：消耗2点科技点,拥有3个幽灵可转恶灵")

func _on_mouse_exited():
	var ui = ObjectManager.gameManager.ui as UI
	ui.closeDesc()
